﻿@model Infinity.Models.Instructor

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Instructor</legend>
         <span class="input input--jiro">
                <label class="" for="input-10" style="color:gray">
                    <span class="input__label-content input__label-content--jiro">
                        &nbsp;&nbsp; @Html.HiddenFor(model => model.InsructorID)
                        Instructor ID
                        &nbsp;&nbsp;&nbsp;
                        @Model.InsructorID
                    </span>
                </label>
            </span>
            <br />
        <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Name" name="Name" id="Name" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Instructor Name
                        <span class="star">@Html.ValidationMessageFor(model => model.Name,"*")</span>
                    </span>
                </label>
            </span>
         <br />
        <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Phone" name="Phone" id="Phone" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Instructor Phone
                        <span class="star">@Html.ValidationMessageFor(model => model.Phone,"*")</span>
                    </span>
                </label>
            </span>
        <br />
        <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Address" name="Address" id="Address" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Instructor Address
                        <span class="star">@Html.ValidationMessageFor(model => model.Phone,"*")</span>
                    </span>
                </label>
            </span>
        <br />
        <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Mail" name="Mail" id="Mail" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Instructor Email
                        <span class="star">@Html.ValidationMessageFor(model => model.Mail,"*")</span>
                    </span>
                </label>
            </span>
        <br />
        
         <p>

            @Html.ValidationSummary(false,"Please fix the errors then submit ")
       
           
        </p> 
        <div>
    <table>
  <tr>
@*      <td>            <button class="del" value="@Model.InsructorID">Delete</button></td>*@

      <td>@Html.ActionLink("Delete", "Delete", new { id = Model.InsructorID }, new {@class="send"})</td>
      <td>&nbsp;&nbsp;<a href="@Url.Action("Index", "Instructor")" class="send">BacK to list</a></td>

      <td>&nbsp;&nbsp;<a href="@Url.Action("Create", "Instructor")" class="send">Create New Instructor</a></td>
            <td> &nbsp;&nbsp;  <input type="submit"  value="Save" class="send" /></td>

  </tr> 
</table>
</div>
    </fieldset>
}




@* @Html.ActionLink("Back to List", "Index") ||*@
